<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}currentPage{/if}</div>
<form id="deleteForm" name="form" action="?module=backoffice&action=AjaxSwitchPublicationStatus&saveButton=1" method="post" class="nyroModal">
{t assignTo=title}Changing status{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
<div id="modalContent">
    <table class="modalTable">
        {if $nbRows > 1}
        <tr><th>{t 1=$nbRows}Are you sure you want to change status for these %s elements ?{/t}</th></tr>
        {else}
        <tr><th>{t 1=$uniqueRow->getLabel()}Are you sure you want to change status for "%s" ?{/t}</th></tr>
        {/if}
        {foreach from=$rows item=row}
        <input type="hidden" name="row[]" value="{$row}">
        {/foreach}
        {if $lang}
        <input type="hidden" name="docLang" value="{$lang}">
        {if isset($folder)}
        <input type="hidden" name="docId" value="{$folder->getUniqueId()}">
        {/if}
        {/if}
    </table>
</div>
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html"}
</form>
